export const addCart=(data)=>{
    return {
        type:'ADD_CART',
        payload:data
    }
}
export const deleteCart=(id)=>{
    return {
        type:'DELETE_CART',
        id:id
    }
}

export const update=(updatedate,id)=>{
    console.log(updatedate,id)
    return {
        type:'UPDATE',
        amount:updatedate,
        id:id
    }
}